package ch.ethz.fcl;

import ch.ethz.fcl.input.DepthImage;
import ch.ethz.fcl.input.TableDepthMap;
import ch.ethz.fcl.process.DepthImageProcess;
import ch.ethz.fcl.process.polygon.PolygonFit;

public class KinectContainer {
	static final String CONFIG_FILE = "etc/config.xml";

	private DepthImage depthImage;
	private TableDepthMap tableDepthMap;
	private DepthImageProcess depthImageProcess;
	private PolygonFit polygonFit;

	public KinectContainer() {
		if (Constant.KINECT_AVAI)
			depthImage = new DepthImage(this, CONFIG_FILE);
		else
			depthImage = new DepthImage(this);

		tableDepthMap = new TableDepthMap(this);
		depthImageProcess = new DepthImageProcess(this);
		polygonFit = new PolygonFit(this);
	}

	public DepthImage getDepthImage() {
		return depthImage;
	}

	public TableDepthMap getTableDepthMap() {
		return tableDepthMap;
	}

	public DepthImageProcess getDepthImageProcess() {
		return depthImageProcess;
	}

	public PolygonFit getPolygonFit() {
		return polygonFit;
	}
}
